﻿<%@ Page Title="" Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true"
    CodeBehind="register.aspx.cs" Inherits="Icst.Leaflike.Web.register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>新用户注册 - 北京行道树认知网</title>
    <link rel="Stylesheet" href="style/register.css" /> 
    <script type="text/javascript" src="script/login.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="main" runat="server">
<div class="login_content" style="margin-bottom:20px">
  <div class="login_content_dash">  
    <span class="login_content_dasht"></span>
    <div class="login_content_border">
      <h2>
      	<div class="reg_title">
        	<h4 class="sectiontitle">欢迎注册北京行道树认知网</h4>
        </div>
      </h2>

      <form name="register_form" id="register_form" class="login_form" runat="server">
        <p id="errorPanel" runat="server" style="display:none;"><label></label>
        <span>
            <label ID="lblError" runat="server" style="BORDER-BOTTOM: #ffc100 1px solid; BORDER-LEFT: #ffc100 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 18px; PADDING-LEFT: 6px; WIDTH: auto; PADDING-RIGHT: 0px; DISPLAY: inline-block; BACKGROUND: #fffdb3; HEIGHT: 18px; COLOR: #c30; FONT-SIZE: 12px; OVERFLOW: hidden; BORDER-TOP: #ffc100 1px solid; MARGIN-RIGHT: 26px; BORDER-RIGHT: #ffc100 1px solid; PADDING-TOP: 2px"></label>
        </span>
        </p>
        
        <p><label>用户名：</label>
        <span class="login_form_input">
            <input name="txtUserName" type="text" maxlength="40" id="txtUserName" class="input_text" runat="server"/>
        </span>
        <span>
            <asp:RegularExpressionValidator CssClass="login_form_validate" ID="RequiredFieldValidator2" runat="server" ErrorMessage="4～16个由字母、数字组成" ControlToValidate="txtUserName" ValidationExpression="^[\\u4e00-\\u9fa5a-zA-Z0-9]{4,16}$" />
        </span>
        </p>
        
        <p><label>登录密码：</label>
        <span class="login_form_input">
            <input name="txtPassword" type="password" maxlength="20" id="txtPassword" class="input_text" runat="server" onpaste="return false" />
        </span>
        <span>
            <%--<asp:RegularExpressionValidator CssClass="login_form_validate" ID="RequiredFieldValidator1" runat="server" ErrorMessage="6～22个字符" ControlToValidate="txtPassword" ValidationExpression="^[\@A-Za-z0-9\!\#\$\%\^\&\*\.\~]{6,22}$" />--%>
        </span>
        <span>
        
        </span>
        </p>
          
        <p><label>确认密码：</label>
        <span class="login_form_input">
            <input name="txtRepeatPass" type="password" maxlength="20" id="txtRepeatPass" class="input_text" runat="server" onpaste="return false" />
         </span>
         <span>
            <asp:CompareValidator CssClass="login_form_validate" ID="cvPass" runat="server" ErrorMessage="两次密码不一致" ControlToCompare="txtPassword" ControlToValidate="txtRepeatPass" />
         </span>
         </p>

        <p><label>Email地址：</label>
        <span class="login_form_input">
            <input name="txtEmail" type="text" maxlength="40" id="txtEmail" class="input_text" runat="server"/>
        </span>
        <span>
            <asp:RegularExpressionValidator CssClass="login_form_validate" ID="rfvEmail" runat="server" ErrorMessage="请输入合法的Email地址" ControlToValidate="txtEmail" ValidationExpression="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" />
        </span>
        </p>
        
        <p><label>验证码：</label>
           <span class="login_form_input" style="width:4em">
                <input name="txtVerifyCode" type="text" runat="server" maxlength="4" id="txtVerifyCode"/>
            </span>  
           <span class="login_form_img">
                <img alt="验证码" id="imgCode" src="verify.ashx" onclick="this.src='verify.ashx?tmp='+new Date().getTime().toString(36);" title="看不清楚，换一张"/>
            </span>
        </p>
        
        <p><label>&nbsp;</label>
        <span>
            <asp:Button runat="server" 
            ID="btnRegister" 
            Text="提交注册" 
            CssClass="button_blue r5px" 
            OnClick="btnRegister_Click" 
            OnClientClick="hex_md5_elems();" />
        </span>
        </p>
      </form>
    </div>
  </div>
  <div class="login_content_dashb"></div>
</div>
<script type="text/javascript">
    var txtPassword = "<%=txtPassword.ClientID %>";
    var txtRepeatPass = "<%=txtRepeatPass.ClientID %>";
    function hex_md5_elems() {
        hex_md5_elem(txtPassword);
        hex_md5_elem(txtRepeatPass);
    }
</script>
</asp:Content>
